/*
 * @Author: ayun chengyunwu@jiatui.com
 * @Date: 2023-07-19 10:51:38
 * @LastEditors: ayun chengyunwu@jiatui.com
 * @LastEditTime: 2023-07-19 11:44:56
 * @FilePath: /ift-economy-network-h5/src/service/InvestmentScheduling/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { get, post } from '@/utils/request'
const VITE_API_URL = import.meta.env.VITE_API_URL

const GOVECONOMICS = `/pai/pai-sso/`
const FTECONOMICAPI = `/ft-economic-api`

/**
 * 登录接口
 * @param params
 * @returns
 */
export const login = (data = {}) =>
  post(`${GOVECONOMICS}login/auth-account/verify-code`, data, {
    showLoading: true,
  })

export const loginImage = (data = {}) =>
get(`${GOVECONOMICS}login/image/code/no/user`, data, {
    showLoading: true,
})

/**
* 获取项目监测列表-时间列表
* @param data
* @returns
*/
export const getProjectListTimes = (params = {}) =>
  get(`${FTECONOMICAPI}/project-issue/projectListTimes`, params, {
    showLoading: true,
  })

/**
 * 获取项目监测列表
 * @param data
 * @returns
 */
export const getProjectListIssue = (data = {}) =>
  post(`${FTECONOMICAPI}/project-issue`, data, {
    showLoading: true,
  })

/**
* 获取项目监测-基本信息
* @param params
* @returns
*/
export const getProjectInfo = (params = {}) =>
  get(`${FTECONOMICAPI}/project-issue/search-projectInfo`, params, {
    showLoading: true,
  })

/**
* 获取项目监测-关键环节
* @param params
* @returns
*/
export const getProjectGanttChart = (params = {}) =>
  get(`${FTECONOMICAPI}/projectInvestment/getProjectGanttChart`, params, {
    showLoading: true,
  })


/**
* 获取项目监测-项目联系人
* @param params
* @returns
*/
export const getProjectContactInfo = (params = {}) =>
  get(`${FTECONOMICAPI}/project-issue/projectContactInfo`, params, {
    showLoading: true,
  })
